home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re Forcing a draw < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Forcing a draw
  2. Sent:        5/17/96 9:06 AM
  3. Received:    5/17/96 9:21 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Subject:  Forcing a draw                    Time: 8:32 AM     Date:5/17/96
  9. >
  10. >In a DoMouseDown of a subView, the user is dragging a point in a graph, thus
  11. >changing the data in the model layer. The model has dependents, including
  12. >some views, which are notified of the change. The views need to redraw
  13. >themselves immediately; i.e., without waiting for an update, so that the user
  14. >gets feedback about the effects of the drag during the drag.
  15. >
  16. >I have been unable to discover any way to force an immediate redraw of an
  17. >individual view. Can anyone help me?
  18. >
  19. >I'm using ODF d11 and downloading ODF 1.0 as I write.
  20. >
  21. >Bill Finzer
  22. >Key Curriculum Press
  23.  
  24. This easiest way would be to call Invalidate on the view and immediately 
  25. call Draw. We need to add a ForceRedraw method.
  26.  
  27. .......................................................................
  28.  Henri Lamiraux                                      lamiraux@apple.com
  29.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  30. .......................................................................
  31.  
  32.